package com.youhome.mobile.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by chen365 on 2019/03/01.
 */
@Data
@ApiModel
public class DTOShareGroup {

    @ApiModelProperty(value = "分享组ID")
    private String shareId;

    @ApiModelProperty(value = "分享组名称", required = true)
    @NotBlank(message = "分享组名称不能为空")
    private String name;

    @ApiModelProperty(value = "状态,0关闭,1开启", required = true)
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态不能小于0")
    @Max(value = 1, message = "状态不能大于1")
    private int status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
